<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button>1...1</button>
    <button>2...2</button>
    <button>3...3</button>
    <button>4...4</button>
    <button>5...5</button>
    <script src="./jquery-3.6.0.js"></script>
    <script>
        $('button').css('backgroundColor', 'red')
            .on('click', function () {
                $(this).css('backgroundColor', 'yellow')
            })
            .addClass('active')
    </script>
</body>

</html>